/*****************************************************************************
*        描述 :
*             文件描述
*        CLR版本:            3.5
*        创建者 :            蒋 光
*        个人域名:           jiangguang.net.cn
*        命名空间名称:       ECP.Interface
*        文件名:             IItemDetailsService.cs
*        创建系统时间:       2012/11/2 19:07:01
*        创建年份:           2012
*
/*****************************************************************************/

namespace ECP.Interface
{
    using System.Data;
    using System.ServiceModel;
    using ECP.Utilities;

    [ServiceContract(Namespace = "http://jiangguang.net.cn/"), XmlSerializerFormat]
    public interface IItemDetailsService
    {
        [OperationContract]
        string Add(BaseUserInfo userInfo, DataTable dataTable, out string statusCode, out string statusMessage);

        [OperationContract]
        int BatchDelete(BaseUserInfo userInfo, string tableName, string[] ids);

        [OperationContract]
        int BatchMoveTo(BaseUserInfo userInfo, string tableName, string[] ids, string targetID);

        [OperationContract]
        int BatchSave(BaseUserInfo userInfo, DataTable dataTable);

        [OperationContract]
        int Delete(BaseUserInfo userInfo, string tableName, string id);

        [OperationContract]
        DataTable Get(BaseUserInfo userInfo, string tableName, string id);

        [OperationContract]
        DataSet GetDSByCodes(BaseUserInfo userInfo, string[] codes);

        [OperationContract]
        DataTable GetDT(BaseUserInfo userInfo, string tableName);

        [OperationContract]
        DataTable GetDTByCode(BaseUserInfo userInfo, string code);

        [OperationContract]
        DataTable GetDTByParent(BaseUserInfo userInfo, string tableName, string parentID);

        [OperationContract]
        void Load();

        [OperationContract]
        int Update(BaseUserInfo userInfo, DataTable dataTable, out string statusCode, out string statusMessage);
    }
}